﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace YSC_Core.BLL.Domain.CommonModels
{
    /// <summary>
    /// 通用返回模型
    /// </summary>
    [DataContract]
    public class ReturnValueModel
    {
        /// <summary>
        /// 返回码
        /// </summary>
        [DataMember(Name = "Code")]
        public int Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        [DataMember(Name = "msg")]
        public string Msg { get; set; }
        /// <summary>
        /// 返回参数
        /// </summary>
        [DataMember(Name = "result")]
        public object Result { get; set; }
    }

    public class PaginationyLAYUIModel
    {
        /// <summary>
        /// 返回码
        /// </summary>
        [DataMember(Name = "code")]
        public int code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        [DataMember(Name = "msg")]
        public string msg { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        [DataMember(Name = "count")]
        public int count { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember(Name = "data")]
        public object data { get; set; }
    }

    public class PaginationModel
    {
        /// <summary>
        /// 返回码
        /// </summary>
        [DataMember(Name = "Code")]
        public int Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        [DataMember(Name = "Msg")]
        public string Msg { get; set; }
        /// <summary>
        /// 条数
        /// </summary>
        [DataMember(Name = "Total")]
        public int Total { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        [DataMember(Name = "Timer")]
        public string Timer { get; set; }
        /// <summary>
        /// 返回参数
        /// </summary>
        [DataMember(Name = "result")]
        public object Result { get; set; }
    }

    public class PaginationyMenuModel
    {
        /// <summary>
        /// 返回码
        /// </summary>
        [DataMember(Name = "code")]
        public int code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        [DataMember(Name = "msg")]
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DataMember(Name = "data")]
        public object data { get; set; }
    }
}
